package com.mjlf.cloud.rabbitmq.server;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @auther a123
 * @create 2018-02-28 17:59
 * @desc
 */
@Component
@RabbitListener(queues = "hello")
public class Recever {

    @RabbitHandler
    public void process(String hello){
        System.out.println("Receiver : " + hello);
    }
}
